class Solution {
public:
    void moveZeroes(vector<int>& nums) {
        int length=nums.size();
        nums.erase(std::remove(nums.begin(),nums.end(),0),nums.end());
        int lengthth=nums.size();
        while(length-lengthth++){
            nums.push_back(0);
        }
    }
};